# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blackarch-keyring
pkgver=20251011
pkgrel=2
pkgdesc='BlackArch Linux PGP keyring.'
arch=('any')
url='https://github.com/BlackArch/blackarch-keyring'
license=('custom:unknown')
source=("https://www.blackarch.org/keyring/blackarch-keyring-$pkgver.tar.gz"
        "https://www.blackarch.org/keyring/blackarch-keyring-$pkgver.tar.gz.sig"
        'blackarch-key.hook')
install="$pkgname.install"
backup=('etc/pacman.d/hooks/blackarch-key.hook')
sha512sums=('6ec9e038c0a877f8e666286112a871586ac5f02a4912a2e5d284530994226b6f01e647a2d98de4ec27c45ddee24097b9e823e443197eed8d05d135747199c774'
            'SKIP'
            '3feda2ca239bcc59845d936c98e531102c4002afd7a1de8e989fa756ef1a7cc646c5a2805765b1855d71283883e68eeda31d5ce70bec8be07319e24229242df9')

package() {
  cd "$pkgname-$pkgver"

  make PREFIX=/usr DESTDIR="$pkgdir" install

  install -Dm 755 "$srcdir/blackarch-key.hook" \
    "$pkgdir/etc/pacman.d/hooks/blackarch-key.hook"
}

